/**
 * 查看录用详情
 */
import React from 'react';
import { history } from 'umi'
import AuthComponent from '@/utils/auth/AuthComponent';

import { Icon } from '../../components';

function HireDetailOperate({ candidateId, employId, resumeId, ...rest }) {
    const handleJump = React.useCallback(() => {
        history.push({
            pathname: '/office/personnelManagement/recruitment/resume/detail',
            query: { activeKey: 'HIRE', candidateId, employId, id: resumeId }
        });
    }, []);
    return (
        <AuthComponent code="office:recruitment:course:hire">
            <Icon title="查看录用详情" type="chakanfabuxinxi" onClick={handleJump} {...rest} />
        </AuthComponent>
    );
}
export default HireDetailOperate;
